package com.example.hlsdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.hlsdemo.entity.VideoInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface VideoInfoMapper extends BaseMapper<VideoInfo> {
    
    @Select("SELECT * FROM video_info WHERE md5 = #{md5}")
    VideoInfo findByMd5(String md5);
    
    @Select("SELECT * FROM video_info WHERE video_id = #{videoId}")
    VideoInfo findById(String videoId);
} 